// Tables V2

#ifndef _TABLES
#define _TABLES

//This table id compatible with 20000.00 Hz. sampling rate
//Envelope frequency tuning word vs. MIDI range value [0-127]
const uint16_t EFTWS[] PROGMEM = {
0x0371,0x0340,0x0311,0x02E5,0x02BB,0x0294,0x026F,0x024C,0x022B,0x020C,0x01EE,0x01D3,0x01B8,0x01A0,0x0188,0x0172,
0x015D,0x014A,0x0137,0x0126,0x0115,0x0106,0x00F7,0x00E9,0x00DC,0x00D0,0x00C4,0x00B9,0x00AE,0x00A5,0x009B,0x0093,
0x008A,0x0083,0x007B,0x0074,0x006E,0x0068,0x0062,0x005C,0x0057,0x0052,0x004D,0x0049,0x0045,0x0041,0x003D,0x003A,
0x0037,0x0034,0x0031,0x002E,0x002B,0x0029,0x0026,0x0024,0x0022,0x0020,0x001E,0x001D,0x001B,0x001A,0x0018,0x0017,
0x0015,0x0014,0x0013,0x0012,0x0011,0x0010,0x000F,0x000E,0x000D,0x000D,0x000C,0x000B,0x000A,0x000A,0x0009,0x0009,
0x0008,0x0008,0x0007,0x0007,0x0006,0x0006,0x0006,0x0005,0x0005,0x0005,0x0004,0x0004,0x0004,0x0004,0x0003,0x0003,
0x0003,0x0003,0x0003,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
};

//Voice frequency tuning word vs. MIDI note [0-127]
const uint16_t PITCHS[] PROGMEM = {
0x001A,0x001C,0x001E,0x001F,0x0021,0x0023,0x0025,0x0028,0x002A,0x002D,0x002F,0x0032,0x0035,0x0038,0x003C,0x003F,
0x0043,0x0047,0x004B,0x0050,0x0055,0x005A,0x005F,0x0065,0x006B,0x0071,0x0078,0x007F,0x0087,0x008F,0x0097,0x00A0,
0x00AA,0x00B4,0x00BE,0x00CA,0x00D6,0x00E3,0x00F0,0x00FE,0x010E,0x011E,0x012F,0x0141,0x0154,0x0168,0x017D,0x0194,
0x01AC,0x01C6,0x01E1,0x01FD,0x021C,0x023C,0x025E,0x0282,0x02A8,0x02D0,0x02FB,0x0329,0x0359,0x038C,0x03C2,0x03FB,
0x0438,0x0478,0x04BC,0x0504,0x0550,0x05A1,0x05F7,0x0652,0x06B2,0x0718,0x0784,0x07F6,0x0870,0x08F0,0x0978,0x0A08,
0x0AA1,0x0B43,0x0BEF,0x0CA4,0x0D65,0x0E31,0x0F09,0x0FED,0x10E0,0x11E1,0x12F1,0x1411,0x1543,0x1687,0x17DE,0x1949,
0x1ACA,0x1C62,0x1E12,0x1FDB,0x21C0,0x23C2,0x25E3,0x2823,0x2A86,0x2D0E,0x2FBC,0x3292,0x3594,0x38C4,0x3C24,0x3FB7,
0x4381,0x4785,0x4BC6,0x5047,0x550D,0x5A1C,0x5F78,0x6525,0x6B29,0x7188,0x7848,0x7F6F,0x8703,0x8F0A,0x978C,0xA08F,
};


//Arduino synth V4.0
//This table id compatible with 16000.00 Hz. sampling rate
//Envelope frequency tuning word vs. MIDI range value [0-127]
/*const uint16_t EFTWS[] PROGMEM = {
0x044E,0x0410,0x03D5,0x039E,0x036A,0x0339,0x030B,0x02DF,0x02B6,0x028F,0x026A,0x0247,0x0227,0x0208,0x01EA,0x01CF,
0x01B5,0x019C,0x0185,0x016F,0x015B,0x0147,0x0135,0x0123,0x0113,0x0104,0x00F5,0x00E7,0x00DA,0x00CE,0x00C2,0x00B7,
0x00AD,0x00A3,0x009A,0x0091,0x0089,0x0082,0x007A,0x0073,0x006D,0x0067,0x0061,0x005B,0x0056,0x0051,0x004D,0x0048,
0x0044,0x0041,0x003D,0x0039,0x0036,0x0033,0x0030,0x002D,0x002B,0x0028,0x0026,0x0024,0x0022,0x0020,0x001E,0x001C,
0x001B,0x0019,0x0018,0x0016,0x0015,0x0014,0x0013,0x0012,0x0011,0x0010,0x000F,0x000E,0x000D,0x000C,0x000C,0x000B,
0x000A,0x000A,0x0009,0x0009,0x0008,0x0008,0x0007,0x0007,0x0006,0x0006,0x0006,0x0005,0x0005,0x0005,0x0004,0x0004,
0x0004,0x0004,0x0003,0x0003,0x0003,0x0003,0x0003,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0002,0x0001,0x0001,
0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
};
//Voice frequency tuning word vs. MIDI note [0-127]
const uint16_t PITCHS[] PROGMEM = {
0x0021,0x0023,0x0025,0x0027,0x002A,0x002C,0x002F,0x0032,0x0035,0x0038,0x003B,0x003F,0x0042,0x0046,0x004B,0x004F,
0x0054,0x0059,0x005E,0x0064,0x006A,0x0070,0x0077,0x007E,0x0085,0x008D,0x0096,0x009F,0x00A8,0x00B2,0x00BD,0x00C8,
0x00D4,0x00E1,0x00EE,0x00FC,0x010B,0x011B,0x012C,0x013E,0x0151,0x0165,0x017A,0x0191,0x01A9,0x01C2,0x01DD,0x01F9,
0x0217,0x0237,0x0259,0x027D,0x02A3,0x02CB,0x02F5,0x0322,0x0352,0x0385,0x03BA,0x03F3,0x042F,0x046F,0x04B2,0x04FA,
0x0546,0x0596,0x05EB,0x0645,0x06A5,0x070A,0x0775,0x07E6,0x085F,0x08DE,0x0965,0x09F4,0x0A8C,0x0B2C,0x0BD6,0x0C8B,
0x0D4A,0x0E14,0x0EEA,0x0FCD,0x10BE,0x11BD,0x12CB,0x13E9,0x1518,0x1659,0x17AD,0x1916,0x1A94,0x1C28,0x1DD5,0x1F9B,
0x217C,0x237A,0x2596,0x27D2,0x2A31,0x2CB3,0x2F5B,0x322C,0x3528,0x3851,0x3BAB,0x3F37,0x42F9,0x46F5,0x4B2D,0x4FA5,
0x5462,0x5966,0x5EB7,0x6459,0x6A50,0x70A3,0x7756,0x7E6E,0x85F3,0x8DEA,0x965A,0x9F4B,0xA8C4,0xB2CD,0xBD6F,0xC8B2,
};
*/


const int8_t EmptyTable[] PROGMEM =
{
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
};
const int8_t SinTable[] PROGMEM =
{0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,59,62,65,67,70,73,75,78,80,82,85,87,89,91,94,96,98,100,102,103,105,107,108,110,112,113,114,116,117,118,119,120,121,122,123,123,124,125,125,126,126,126,126,126,127,126,126,126,126,126,125,125,124,123,123,122,121,120,119,118,117,116,114,113,112,110,108,107,105,103,102,100,98,96,94,91,89,87,85,82,80,78,75,73,70,67,65,62,59,57,54,51,48,45,42,39,36,33,30,27,24,21,18,15,12,9,6,3,0,-3,-6,-9,-12,-15,-18,-21,-24,-27,-30,-33,-36,-39,-42,-45,-48,-51,-54,-57,-59,-62,-65,-67,-70,-73,-75,-78,-80,-82,-85,-87,-89,-91,-94,-96,-98,-100,-102,-103,-105,-107,-108,-110,-112,-113,-114,-116,-117,-118,-119,-120,-121,-122,-123,-123,-124,-125,-125,-126,-126,-126,-126,-126,-127,-126,-126,-126,-126,-126,-125,-125,-124,-123,-123,-122,-121,-120,-119,-118,-117,-116,-114,-113,-112,-110,-108,-107,-105,-103,-102,-100,-98,-96,-94,-91,-89,-87,-85,-82,-80,-78,-75,-73,-70,-67,-65,-62,-59,-57,-54,-51,-48,-45,-42,-39,-36,-33,-30,-27,-24,-21,-18,-15,-12,-9,-6,-4,
};

const int8_t TriangleTable[] PROGMEM =
{0,1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61,63,65,67,69,71,73,75,77,79,81,83,85,87,89,91,93,95,97,99,101,103,105,107,109,111,113,115,117,119,121,123,125,127,125,123,121,119,117,115,113,111,109,107,105,103,101,99,97,95,93,91,89,87,85,83,81,79,77,75,73,71,69,67,65,63,61,59,57,55,53,51,49,47,45,43,41,39,37,35,33,31,29,27,25,23,21,19,17,15,13,11,9,7,5,3,1,0,-1,-3,-5,-7,-9,-11,-13,-15,-17,-19,-21,-23,-25,-27,-29,-31,-33,-35,-37,-39,-41,-43,-45,-47,-49,-51,-53,-55,-57,-59,-61,-63,-65,-67,-69,-71,-73,-75,-77,-79,-81,-83,-85,-87,-89,-91,-93,-95,-97,-99,-101,-103,-105,-107,-109,-111,-113,-115,-117,-119,-121,-123,-125,-127,-125,-123,-121,-119,-117,-115,-113,-111,-109,-107,-105,-103,-101,-99,-97,-95,-93,-91,-89,-87,-85,-83,-81,-79,-77,-75,-73,-71,-69,-67,-65,-63,-61,-59,-57,-55,-53,-51,-49,-47,-45,-43,-41,-39,-37,-35,-33,-31,-29,-27,-25,-23,-21,-19,-17,-15,-13,-11,-9,-7,-5,-3,-2,
};

const int8_t SquareTable[] PROGMEM =
{127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-125,-1,
};

const int8_t SawTable[] PROGMEM =//actually guitar 0007 from Adventure Kid (see below)
{
 2,7,13,19,25,30,36,42,48,53,59,64,70,75,81,86,91,96,101,106,110,114,117,120,123,125,126,127,127,127,127,127,127,126,125,123,121,119,117,115,113,110,108,105,102,99,97,94,90,87,84,80,76,72,68,64,60,57,53,49,46,43,40,37,35,33,31,29,27,25,24,21,19,17,15,13,11,9,7,5,4,4,3,3,3,4,5,6,7,8,9,11,12,13,14,16,17,17,18,19,19,19,19,19,19,18,18,17,16,16,15,14,13,12,11,10,9,8,7,5,3,0,-1,-4,-6,-9,-9,-14,-16,-19,-21,-24,-26,-28,-31,-33,-35,-37,-40,-42,-44,-46,-48,-50,-51,-53,-55,-57,-58,-60,-61,-63,-64,-65,-66,-67,-67,-67,-67,-67,-66,-65,-64,-62,-60,-58,-56,-54,-52,-49,-47,-45,-43,-42,-40,-39,-38,-37,-37,-36,-36,-35,-35,-35,-34,-34,-33,-32,-31,-31,-30,-29,-28,-28,-27,-27,-27,-27,-28,-29,-30,-31,-32,-33,-35,-37,-39,-40,-42,-44,-46,-48,-50,-52,-54,-56,-58,-60,-61,-63,-65,-66,-68,-69,-71,-72,-73,-74,-74,-75,-75,-75,-74,-73,-72,-70,-69,-67,-64,-62,-59,-56,-54,-51,-48,-45,-42,-39,-36,-33,-29,-25,-21,-16,-11,-6

};

const int8_t RampTable[] PROGMEM =
{-127,-126,-125,-124,-123,-122,-121,-120,-119,-118,-117,-116,-115,-114,-113,-112,-111,-110,-109,-108,-107,-106,-105,-104,-103,-102,-101,-100,-99,-98,-97,-96,-95,-94,-93,-92,-91,-90,-89,-88,-87,-86,-85,-84,-83,-82,-81,-80,-79,-78,-77,-76,-75,-74,-73,-72,-71,-70,-69,-68,-67,-66,-65,-64,-63,-62,-61,-60,-59,-58,-57,-56,-55,-54,-53,-52,-51,-50,-49,-48,-47,-46,-45,-44,-43,-42,-41,-40,-39,-38,-37,-36,-35,-34,-33,-32,-31,-30,-29,-28,-27,-26,-25,-24,-23,-22,-21,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,

};

const int8_t NoiseTable[] PROGMEM =
{-62,-72,-92,-98,98,-103,96,-89,-29,-55,98,-8,-118,13,11,-1,76,-8,-116,51,33,-85,-43,-16,-114,-47,-63,-113,109,-39,-127,-59,0,118,70,62,54,85,51,122,60,30,-126,-25,71,-82,-11,64,-95,-110,127,37,-14,-57,51,-4,-47,-80,110,7,-117,89,65,-58,50,-21,33,-113,-22,111,-46,108,112,-57,-111,53,-21,-22,-127,-18,-9,95,88,99,-17,-3,74,2,123,-31,53,-7,91,-80,15,-112,114,14,-115,-55,22,95,21,53,-105,-67,-25,25,13,58,-121,-62,103,87,109,38,-79,-60,-16,-68,-91,90,112,-99,118,87,-61,-36,-40,-39,-30,34,83,-100,-43,-114,-54,-8,-36,-52,71,22,-33,116,9,114,24,-91,-48,-106,-2,-31,103,21,117,44,115,-59,53,97,124,66,120,-44,57,-96,-24,46,32,111,-56,-123,46,-11,97,-70,-12,-89,-81,24,-29,-23,77,42,-40,8,-98,-35,-21,116,61,-41,116,66,-88,22,95,-31,40,-51,-78,28,3,124,92,81,-27,78,65,-16,-116,-73,-126,55,-76,78,17,43,66,-24,117,-38,-76,-10,-37,-47,-56,33,94,-40,107,36,-104,-11,-27,-23,105,-96,68,-25,7,67,6,-69,70,-10,10,5,42,120,-71,-122,-86,113,112,119,
};


const int8_t ATable[] PROGMEM =//0094  Tables A-5 plus guitar above are from Adventure Kid's collection of single-cycle waveforms: http://www.adventurekid.se/akrt/waveforms/adventure-kid-waveforms/  I (A.M.) resampled them and reduced them to 8-bit
{
0,-4,-8,-11,-15,-18,-22,-25,-28,-31,-34,-37,-40,-43,-45,-48,-50,-52,-55,-57,-59,-61,-63,-65,-67,-68,-70,-72,-73,-75,-76,-77,-79,-80,-81,-82,-83,-84,-85,-86,-87,-87,-88,-89,-89,-90,-90,-91,-91,-91,-92,-92,-92,-92,-92,-92,-92,-92,-92,-92,-92,-91,-91,-91,-90,-90,-89,-89,-88,-88,-87,-86,-86,-85,-84,-83,-82,-82,-81,-80,-79,-78,-76,-75,-74,-73,-72,-71,-69,-68,-67,-65,-64,-63,-61,-60,-58,-58,-60,-61,-62,-63,-62,-62,-61,-61,-60,-60,-59,-59,-58,-58,-58,-57,-57,-57,-56,-56,-55,-55,-54,-53,-52,-51,-51,-49,-49,-47,-45,-44,-42,-40,-38,-36,-34,-31,-29,-27,-24,-21,-19,-16,-13,-10,-7,-3,0,3,7,10,14,17,21,25,30,35,39,43,48,52,56,60,61,62,63,65,67,69,72,74,77,79,81,84,86,88,89,91,93,94,95,97,98,99,100,101,102,103,104,105,106,107,108,109,111,113,114,115,117,118,119,119,120,121,122,123,124,125,125,126,127,127,127,127,127,127,127,127,127,127,127,127,127,126,126,125,123,120,115,110,106,103,99,96,93,89,86,82,78,74,70,65,61,56,52,47,43,38,33,29,25,21,18,14,10,6

};

const int8_t BTable[] PROGMEM =//blended0076
{
0,10,20,30,39,48,57,66,74,82,89,96,102,107,112,117,120,123,126,127,127,127,127,127,126,124,121,119,115,111,107,103,99,94,89,84,79,75,70,65,61,57,53,49,46,43,41,38,37,36,35,34,34,35,35,37,38,40,42,44,47,49,52,55,58,60,63,66,68,70,72,74,75,76,77,77,77,76,75,73,71,68,65,61,57,52,47,42,37,31,24,18,12,5,-2,-9,-15,-22,-28,-34,-40,-46,-51,-56,-60,-64,-68,-71,-73,-74,-75,-76,-76,-75,-73,-71,-68,-65,-61,-57,-52,-46,-41,-35,-28,-22,-22,-8,-1,6,13,20,27,33,39,45,51,56,60,64,68,71,73,75,76,77,77,76,75,73,70,67,63,59,54,49,44,38,32,25,19,12,6,-1,-8,-14,-21,-27,-33,-39,-44,-49,-54,-58,-62,-66,-69,-71,-73,-74,-75,-76,-76,-75,-75,-73,-72,-70,-68,-66,-63,-60,-58,-55,-52,-49,-47,-44,-42,-40,-38,-36,-35,-34,-33,-33,-33,-34,-35,-37,-39,-41,-44,-47,-50,-54,-58,-62,-67,-72,-76,-81,-86,-91,-96,-100,-105,-109,-113,-116,-119,-122,-124,-126,-127,-127,-127,-127,-125,-123,-121,-117,-113,-108,-103,-97,-91,-84,-76,-68,-60,-51,-42,-33,-23,-14

};

const int8_t CTable[] PROGMEM =//0006
{

3,9,14,18,22,26,30,34,38,41,45,48,51,54,57,60,63,66,69,71,74,76,79,81,83,85,87,89,90,92,94,95,97,99,102,104,105,107,108,109,111,110,107,105,103,102,101,100,100,99,98,97,96,94,93,92,91,89,88,86,85,83,82,81,80,79,81,82,82,82,82,83,83,83,83,83,83,83,83,84,84,84,85,85,85,85,85,85,85,85,85,85,84,84,84,83,82,81,81,79,78,77,76,74,73,71,69,68,65,63,61,59,56,54,51,49,46,43,40,37,34,31,28,24,21,17,13,8,2,-4,-8,-13,-16,-20,-24,-27,-30,-34,-37,-40,-43,-46,-49,-52,-54,-57,-60,-62,-65,-67,-69,-71,-74,-76,-78,-79,-81,-83,-85,-86,-88,-89,-91,-92,-92,-91,-90,-89,-88,-87,-87,-86,-86,-85,-85,-84,-84,-83,-83,-82,-81,-81,-80,-80,-79,-79,-78,-78,-78,-79,-80,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-92,-93,-94,-95,-96,-96,-97,-97,-98,-98,-99,-99,-99,-99,-99,-99,-99,-99,-98,-98,-97,-97,-96,-95,-94,-93,-92,-90,-89,-87,-85,-83,-81,-79,-77,-74,-72,-69,-66,-63,-60,-57,-54,-51,-47,-44,-40,-37,-33,-29,-25,-21,-16,-11,-6,
};

const int8_t DTable[] PROGMEM =//altosax0008
{

2,9,15,22,29,36,44,51,59,67,74,82,88,93,96,99,103,105,107,110,113,116,119,121,123,125,125,125,126,127,127,127,127,126,124,121,117,114,109,104,98,93,87,82,77,71,67,61,56,52,48,43,37,31,24,19,16,15,12,10,7,4,3,0,-3,-7,-11,-17,-20,-23,-25,-29,-33,-37,-40,-42,-45,-47,-51,-53,-56,-58,-60,-63,-65,-66,-67,-68,-68,-68,-68,-68,-67,-66,-64,-63,-61,-59,-57,-55,-53,-50,-46,-43,-39,-35,-31,-26,-21,-17,-13,-9,-5,-1,3,6,10,13,16,20,23,26,28,30,32,33,33,34,34,33,33,32,30,28,26,24,22,19,17,13,9,5,2,-2,-5,-8,-12,-15,-18,-20,-22,-25,-28,-30,-33,-34,-36,-36,-37,-38,-40,-40,-39,-39,-39,-38,-38,-37,-36,-35,-34,-33,-31,-30,-29,-27,-25,-23,-22,-21,-20,-19,-18,-17,-16,-16,-15,-15,-14,-14,-13,-12,-12,-12,-12,-12,-12,-13,-14,-14,-15,-16,-17,-18,-19,-20,-21,-21,-22,-23,-24,-25,-26,-27,-28,-29,-30,-30,-30,-30,-30,-31,-31,-31,-30,-30,-30,-30,-30,-31,-31,-32,-32,-33,-34,-36,-37,-39,-40,-42,-44,-46,-47,-48,-49,-49,-48,-47,-45,-42,-38,-33,-28,-22,-16,-9

 };

const int8_t ETable[] PROGMEM =//98
{
2,6,10,14,17,21,24,28,31,34,37,41,44,47,50,53,55,58,61,64,66,69,71,74,76,78,80,83,85,87,89,91,92,94,96,98,99,101,102,104,105,106,108,109,110,111,112,113,114,115,116,117,118,119,119,120,121,121,122,123,123,124,124,125,125,125,126,126,126,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,126,126,126,126,125,125,125,124,124,124,123,123,123,122,122,122,121,121,121,119,117,114,109,103,95,86,86,65,53,41,29,16,2,-12,-24,-35,-44,-53,-62,-69,-76,-82,-87,-92,-96,-100,-103,-106,-109,-111,-113,-115,-116,-118,-119,-120,-121,-122,-123,-123,-124,-124,-125,-125,-126,-126,-126,-126,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-126,-126,-126,-126,-125,-125,-125,-124,-124,-123,-123,-122,-122,-121,-121,-120,-119,-119,-118,-117,-116,-116,-115,-114,-113,-112,-111,-109,-108,-107,-106,-104,-103,-102,-100,-99,-97,-95,-94,-92,-90,-88,-86,-84,-82,-80,-77,-75,-73,-70,-68,-65,-63,-60,-57,-54,-51,-49,-46,-42,-39,-36,-33,-30,-26,-23,-19,-16,-12,-8,-4

};

const int8_t FTable[] PROGMEM =//blended0006
{
7,37,59,74,85,94,100,105,110,113,116,118,120,121,122,123,124,125,126,126,126,127,127,127,127,127,127,127,127,127,127,124,106,94,89,86,84,84,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,83,84,79,64,67,68,66,64,61,59,57,56,55,55,54,54,54,54,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,54,51,33,20,14,10,9,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,8,7,8,2,-15,-15,-25,-4,10,15,17,16,14,12,10,8,6,4,3,0,0,-1,-2,-2,-3,-4,-4,-4,-5,-5,-5,-5,-6,-6,-6,-6,-6,-6,-8,-25,-39,-45,-49,-50,-51,-51,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-52,-54,-69,-70,-66,-69,-71,-74,-75,-78,-78,-80,-80,-81,-81,-81,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-82,-83,-98,-114,-120,-124,-125,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-127,-124,-109,-89,-59

};


const int8_t GTable[] PROGMEM =//eguitar_0003
{
10,40,63,80,91,98,101,102,102,100,97,92,89,86,86,87,90,92,95,96,96,95,93,91,89,88,89,90,91,93,94,94,94,93,91,90,89,89,89,90,91,92,93,93,92,91,90,90,89,89,89,90,91,91,91,91,91,90,90,89,89,89,90,90,90,90,91,90,90,90,89,89,89,89,89,90,90,90,90,90,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,88,88,88,88,88,88,88,89,89,89,89,89,89,89,88,88,87,87,87,88,88,89,89,89,89,88,87,86,86,86,86,88,89,90,91,91,89,86,83,81,81,83,89,96,102,105,101,90,72,48,21,-6,-31,-53,-74,-92,-107,-119,-127,-127,-127,-127,-125,-121,-119,-118,-118,-120,-121,-122,-123,-123,-122,-122,-121,-120,-120,-120,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-121,-120,-120,-120,-120,-120,-120,-120,-121,-121,-121,-121,-120,-120,-119,-119,-119,-119,-119,-120,-121,-121,-121,-121,-120,-119,-119,-118,-118,-118,-119,-120,-121,-121,-121,-121,-120,-118,-117,-116,-117,-117,-119,-121,-122,-123,-122,-120,-117,-114,-113,-113,-116,-123,-125,-125,-125,-122,-103,-74,-40

};

const int8_t HTable[] PROGMEM =//1698
{
1,3,4,5,7,7,8,8,9,8,20,40,48,51,49,45,40,36,32,27,27,33,41,46,47,44,41,36,32,27,25,20,27,59,76,83,83,77,70,62,73,90,94,91,84,76,67,61,87,111,116,113,104,93,80,77,82,92,95,91,85,78,69,59,50,38,26,25,27,25,23,20,17,14,12,13,14,19,49,83,94,97,89,81,69,73,103,115,113,104,91,78,66,55,46,37,30,27,42,58,61,59,53,46,38,31,24,18,14,9,6,3,1,0,8,35,52,56,55,49,42,35,28,22,16,16,31,38,39,36,31,26,20,16,13,18,24,25,23,21,16,11,-6,-27,-37,-40,-40,-38,-35,-31,-28,-24,-22,-19,-21,-50,-72,-78,-77,-71,-67,-90,-113,-114,-109,-98,-87,-75,-65,-55,-47,-50,-74,-105,-124,-123,-115,-102,-105,-116,-112,-104,-91,-79,-66,-71,-82,-80,-75,-66,-58,-53,-54,-56,-60,-64,-71,-101,-124,-127,-120,-108,-93,-79,-65,-72,-86,-85,-79,-70,-60,-50,-41,-43,-60,-68,-67,-61,-54,-46,-37,-32,-27,-28,-34,-33,-27,-21,-16,-14,-25,-47,-56,-57,-53,-47,-40,-33,-27,-22,-17,-13,-10,-8,-6,-8,-18,-23,-23,-21,-18,-14,-11,-7,-4,-2

};

const int8_t ITable[] PROGMEM =//908
{
1,2,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,20,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,34,35,37,39,41,43,44,46,47,49,50,52,53,55,56,57,59,60,62,63,65,66,67,69,70,71,73,74,75,77,78,80,81,82,83,85,86,88,89,90,91,93,94,95,96,98,99,100,101,103,104,105,107,108,109,110,112,112,114,114,117,116,120,117,127,105,58,61,57,56,53,51,48,44,41,37,34,29,26,21,18,14,10,6,2,-2,-6,-11,-14,-19,-23,-27,-31,-35,-40,-44,-48,-52,-57,-61,-66,-70,-74,-78,-83,-87,-92,-96,-102,-107,-101,-96,-92,-89,-87,-85,-84,-82,-81,-80,-79,-79,-78,-77,-76,-76,-75,-74,-74,-73,-72,-72,-71,-71,-70,-69,-69,-68,-67,-67,-66,-65,-64,-64,-63,-62,-62,-61,-60,-60,-59,-58,-57,-57,-56,-55,-54,-54,-53,-52,-51,-51,-50,-49,-48,-48,-47,-46,-45,-45,-44,-43,-42,-41,-41,-40,-39,-38,-37,-37,-36,-35,-34,-33,-32,-32,-31,-30,-29,-28,-27,-27,-26,-25,-24,-23,-22,-21,-21,-20,-19,-18,-17,-16,-16,-14,-14,-13,-12,-10,-5,-5,-5,-4,-3,-3,-2,-1,-1

};




const uint8_t Env0[] PROGMEM =
{255,242,229,216,204,191,178,165,153,142,134,125,117,108,100,91,83,74,71,68,65,62,59,56,53,50,48,46,44,42,40,38,36,34,32,31,30,29,28,28,27,26,25,25,24,24,23,23,22,22,21,21,20,20,19,19,19,18,18,17,17,16,16,15,15,14,14,13,13,12,12,11,11,10,10,10,9,9,8,8,8,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

const uint8_t Env1[] PROGMEM =
{255,250,246,242,238,233,229,225,221,217,213,209,206,202,199,195,191,188,183,179,175,170,166,161,157,153,148,144,139,134,130,125,121,116,112,109,105,102,99,96,93,90,87,83,80,77,74,71,68,65,61,58,56,54,51,49,46,44,42,39,37,34,31,28,25,22,19,16,13,12,12,11,11,10,10,10,9,9,8,8,8,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

const uint8_t Env2[] PROGMEM =
{255,254,254,254,253,253,253,252,252,252,251,251,251,250,250,250,249,249,247,244,242,240,237,235,233,230,219,200,180,160,141,121,102,82,62,58,53,49,45,40,36,31,27,25,24,24,23,23,22,22,21,21,20,20,19,19,19,18,18,17,17,16,16,15,15,14,14,13,13,12,12,11,11,10,10,10,9,9,8,8,8,7,7,6,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

const uint8_t Env3[] PROGMEM =
{255,254,254,254,253,253,253,252,252,251,251,250,249,248,248,247,246,245,241,237,232,228,223,219,215,210,205,200,195,189,184,179,173,168,163,157,151,145,139,133,127,121,115,110,105,101,96,91,86,82,77,72,69,65,62,58,54,51,47,44,41,38,36,33,31,28,26,23,20,19,18,17,15,14,13,12,10,9,9,9,8,8,7,7,6,6,6,6,5,5,5,5,5,5,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

const uint8_t Env4[] PROGMEM =
{100,101,103,106,110,118,134,166,230,245,249,251,249,248,248,247,246,245,244,242,241,240,239,238,237,236,235,234,233,232,231,230,229,228,227,226,225,224,223,222,220,218,215,211,208,202,195,190,185,178,172,165,160,155,150,145,140,135,130,125,120,115,110,105,100,95,90,85,80,75,70,65,60,55,50,45,41,37,33,30,28,26,24,22,20,18,16,14,12,10,9,8,7,6,5,5,5,4,4,4,4,4,4,3,3,3,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};

/*this one's sort of a vibrato effect, but the vibrato speed changes with duration.
const int8_t Env5[] PROGMEM =
{
129,145,164,180,195,207,217,223,227,225,222,215,204,191,176,159,141,122,102,84,66,52,39,31,24,21,21,23,28,34,43,52,62,72,82,91,98,103,107,110,110,107,104,99,93,86,78,70,61,52,44,36,29,23,18,13,10,7,5,4,4,4,5,6,7,8,9,10,10,11,12,12,12,12,11,11,9,8,8,8,7,6,5,4,3,3,2,2,1,1,1,1,1,0,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};
*/

const uint8_t musicNotes1[] PROGMEM = {81,81,173,81,170,81,165,81,81,170,81,81,173,81,81,170,81,81,165,81,81,81,170,81,173,81,81,168,81,81,165,81,81,168,81,81,173,81,81,168,81,81,165,81,81,81,168,81,172,81,81,169,81,81,165,81,81,169,81,81,172,81,81,169,81,81,165,81,81,81,169,81,172,81,81,169,81,81,165,81,81,169,81,81,172,82,81,81,82,169,82,81,81,82,165,82,81,81,82,169,82,81,82,81,225,170,229,222,80,86,99,93,222,86,229,225,82,86,222,229,225,86,80,225,229,222,86,225,229,222,80,86,222,229,225,172,86,82,225,229,222,86,225,229,222,173,86,80,222,229,225,86,225,229,222,82,86,225,229,222,80,86,225,229,222,86,225,229,222,86,80,225,229,222,86,82,225,229,222,86,222,229,225,177,80,86,232,229,225,86,232,229,225,86,82,232,229,225,175,80,86,232,229,225,86,232,229,225,86,80,225,229,232,177,86,82,225,229,232,86,232,229,225,168,86,80,232,229,225,86,225,229,232,82,86,232,229,225,80,86,225,229,232,86,225,229,232,86,80,225,229,232,86,82,232,229,225,86,225,229,232,170,86,80,218,222,225,86,218,222,225,82,86,218,222,225,86,80,225,222,218,86,218,222,225,86,80,225,222,218,172,82,86,218,222,225,86,218,222,225,173,80,86,218,222,225,86,225,222,218,82,86,225,222,218,80,86,218,222,225,172,86,218,222,225,86,80,218,222,225,82,86,225,222,218,86,218,222,225,175,80,86,220,224,227,86,227,224,220,82,86,220,224,227,80,86,227,224,220,177,86,220,224,227,80,86,227,224,220,86,82,227,224,220,86,220,224,227,175,80,86,217,221,224,86,224,221,217,86,82,217,221,224,86,80,217,221,224,173,82,86,217,221,224,82,82,217,80,221,86,224,82,82,224,82,221,86,217,82,82,217,86,221,224,82,99,222,93,229,80,225,86,222,86,229,225,173,86,82,222,229,225,86,80,225,229,222,173,86,222,229,225,80,86,225,229,222,173,86,82,225,229,222,86,225,229,222,177,80,86,225,229,222,86,225,229,222,177,86,82,225,229,222,86,80,225,229,222,175,86,225,229,222,86,80,222,229,225,173,82,86,225,229,222,86,225,229,222,86,80,232,229,225,86,232,229,225,177,82,86,225,229,232,86,80,225,229,232,177,86,225,229,232,80,86,232,229,225,177,86,82,232,229,225,86,225,229,232,175,80,86,225,229,232,86,225,229,232,177,86,82,232,229,225,80,86,225,229,232,175,86,232,229,225,86,80,232,229,225,173,86,82,225,229,232,86,225,229,232,80,86,218,222,225,86,225,222,218,173,86,82,225,222,218,80,86,218,222,225,173,86,225,222,218,86,80,225,222,218,173,82,86,225,222,218,86,218,222,225,177,80,86,218,222,225,86,218,222,225,177,86,82,225,222,218,80,86,225,222,218,175,86,218,222,225,80,86,218,222,225,173,82,86,218,222,225,86,218,222,225,80,86,227,224,220,86,220,224,227,177,86,82,227,224,220,86,80,227,224,220,177,86,227,224,220,80,86,227,224,220,177,86,82,227,224,220,86,227,224,220,86,80,224,221,217,86,217,221,224,181,86,82,224,221,217,86,80,217,221,224,181,82,86,217,221,224,82,82,224,86,221,80,217,82,181,82,217,86,221,82,224,82,82,217,86,221,224,82,99,225,93,229,86,222,80,225,86,229,222,173,86,82,225,229,222,80,86,222,229,225,173,86,225,229,222,86,80,225,229,222,173,82,86,222,229,225,86,222,229,225,177,86,80,225,232,229,86,225,232,229,177,82,86,225,232,229,80,86,229,232,225,175,86,225,232,229,80,86,229,232,225,173,82,86,225,232,229,86,229,232,225,86,80,218,222,225,86,218,222,225,178,86,82,225,222,218,80,86,218,222,225,178,86,225,222,218,86,80,218,222,225,178,86,82,225,222,218,86,225,222,218,177,86,80,227,224,220,86,220,224,227,86,82,220,224,227,80,86,227,224,220,180,86,220,224,227,80,86,227,224,220,86,82,220,224,227,86,220,224,227,177,80,86,217,221,224,86,217,221,224,86,82,217,221,224,80,86,217,221,224,181,82,86,224,221,217,82,82,224,80,221,86,217,82,82,224,82,221,86,217,82,82,217,86,221,224,82,42,99,93,80,45,49,52,41,44,49,52,42,30,80};
const uint8_t musicNotes2[] PROGMEM = {89,165,169,172,84,160,164,167,86,162,165,169,81,157,160,165,82,158,162,165,77,153,157,160,82,158,162,165,84,160,164,167,181,89,165,169,172,84,179,160,164,167,177,86,162,165,169,176,81,157,160,165,174,82,158,162,165,77,172,153,157,160,174,82,158,162,165,176,84,160,164,167,177,245,89,165,169,172,84,176,243,160,164,167,174,241,86,162,165,169,172,240,81,157,160,165,170,238,82,158,162,165,169,77,236,153,157,160,170,238,82,158,162,165,167,240,84,160,164,167,53,89,165,241,165,169,169,172,84,172,240,51,160,164,170,167,169,238,49,86,162,165,165,169,169,236,48,81,157,160,167,165,165,234,46,82,158,162,162,165,77,165,233,44,153,157,172,160,170,234,46,82,158,162,174,165,172,231,48,84,160,164,170,167,169,49,89,229,165,169,165,233,172,84,167,236,48,160,164,176,234,167,177,233,46,86,162,165,181,229,169,184,233,44,81,157,160,172,231,165,229,42,82,174,158,170,226,162,165,77,172,229,41,153,157,169,236,160,165,234,42,82,158,162,177,238,165,179,236,39,84,177,179,177,160,179,177,179,177,164,234,167,176,89,177,233,37,176,165,169,177,229,41,172,165,84,164,231,44,172,160,167,240,42,164,167,169,165,241,41,86,177,162,176,245,37,165,174,169,176,248,41,81,157,181,184,236,39,160,165,186,82,182,238,37,158,181,162,179,234,34,165,182,77,181,236,37,179,153,157,177,233,44,176,160,174,229,42,82,172,158,162,170,241,46,165,169,243,167,44,84,241,243,241,160,170,243,241,243,241,164,169,42,167,167,240,165,241,41,89,165,167,240,169,169,241,37,170,229,172,84,172,228,39,160,167,236,164,172,231,48,170,167,233,169,229,49,86,162,174,241,172,240,53,165,170,238,169,172,240,56,81,157,170,245,160,169,248,44,165,167,250,165,246,46,82,158,162,245,162,174,243,42,176,246,165,177,245,44,77,153,176,243,174,241,41,157,160,172,240,170,238,37,82,158,169,236,162,167,234,49,165,174,233,51,172,231,84,49,51,49,160,174,234,51,49,51,49,164,172,233,172,172,170,231,48,167,89,169,229,49,165,231,48,181,233,49,169,172,234,37,84,179,236,36,160,231,44,236,39,164,167,234,41,233,37,86,162,238,49,177,165,236,48,169,234,46,181,236,48,81,157,234,53,160,233,56,231,58,165,82,186,229,54,226,53,158,162,238,51,165,240,54,184,241,53,77,240,51,153,238,49,157,160,236,48,186,234,46,82,233,44,158,162,231,42,165,238,41,188,236,39,84,160,238,42,164,236,41,236,236,234,39,167,189,233,37,89,39,165,169,177,245,41,42,172,243,44,84,176,160,39,44,164,167,42,41,86,162,46,174,241,165,44,169,42,177,245,44,81,157,42,160,41,165,39,177,82,250,37,34,158,46,162,165,48,77,248,49,153,48,177,157,46,160,44,177,250,42,82,158,41,162,182,39,165,46,179,252,44,84,160,46,184,44,164,44,44,42,167,184,253,41,89,165,181,182,169,184,241,53,172,181,182,84,184,240,51,172,174,160,176,177,164,179,181,167,182,181,86,177,162,179,238,49,165,181,169,169,170,172,241,53,81,174,172,157,170,172,160,169,165,170,172,241,82,170,58,174,158,172,162,170,169,165,167,169,56,77,167,165,153,167,241,157,169,170,160,172,174,241,170,58,82,174,158,172,162,174,246,176,165,177,172,243,60,84,174,176,160,177,164,179,248,181,167,182,184,248,89,181,61,165,177,245,179,246,169,181,248,49,172,179,245,177,246,84,179,248,48,176,236,160,177,238,179,240,164,181,241,179,243,167,177,245,176,246,177,245,86,174,241,162,176,243,46,165,177,245,165,233,169,167,234,169,236,49,81,170,238,169,236,157,167,234,160,169,236,177,233,165,176,234,177,236,49,174,234,82,158,177,238,176,236,162,174,234,233,165,172,170,231,77,172,233,170,231,153,169,229,170,231,49,157,172,233,174,234,160,176,236,177,238,174,234,49,82,158,177,238,176,236,162,177,238,54,165,176,240,174,241,176,236,51,84,177,238,179,240,160,177,241,164,176,243,56,177,245,174,167,246,176,248,56,89,177,245,165,241,53,243,54,169,245,56,172,243,53,241,54,176,84,243,56,240,44,160,241,46,243,48,164,245,49,243,51,241,53,167,240,54,174,241,53,86,162,238,49,240,51,165,241,53,229,41,169,231,42,177,233,44,81,234,46,233,44,157,231,42,160,233,44,241,41,240,42,165,241,44,165,238,42,82,241,46,158,240,44,162,238,42,41,165,236,234,39,165,77,236,41,234,39,233,37,153,234,39,157,236,41,238,42,240,44,160,241,46,165,238,42,82,158,241,46,240,44,162,241,46,165,240,48,238,49,167,240,44,84,241,46,243,48,160,241,49,164,240,51,241,53,238,167,54,240,56,89,241,53,165,49,51,172,169,53,172,51,49,240,84,51,48,160,49,51,172,164,53,51,49,167,48,238,49,86,46,162,48,169,165,49,37,169,39,241,41,81,42,41,157,39,172,160,41,49,48,165,49,229,46,82,158,49,48,170,162,46,165,44,42,229,44,77,42,41,153,42,169,157,44,46,48,160,49,229,46,82,158,49,48,170,162,49,48,165,46,231,48,84,49,51,160,49,179,164,48,49,167,46,48,181,49,89,165,169,236,169,170,172,169,48,84,167,160,179,181,236,164,167,179,177,46,86,169,162,165,233,165,169,174,172,49,81,157,160,158,236,160,160,165,162,37,82,158,174,176,234,162,174,165,37,77,172,153,160,158,233,157,160,160,37,162,82,158,174,234,162,172,165,174,39,176,84,164,160,243,164,162,167,164,89,165,245,165,177,233,44,169,179,234,177,233,172,176,231,84,160,164,243,165,245,44,164,164,243,167,162,241,86,162,174,233,41,165,172,229,169,174,238,176,236,81,157,164,224,44,160,169,222,165,167,224,82,165,226,158,177,238,42,162,179,240,165,182,238,77,181,236,153,169,224,41,157,172,222,160,181,224,177,226,82,182,238,158,42,162,181,236,165,182,238,179,240,84,172,228,160,51,164,170,226,167,172,228,89,169,229,53,172,241,41,165,172,169,243,42,172,172,241,41,172,240,39,84,172,160,228,51,172,229,53,164,172,167,228,51,169,226,49,86,169,162,238,41,169,236,37,165,169,169,238,46,169,240,44,81,169,157,228,32,172,160,233,30,172,165,231,32,170,229,34,82,170,158,241,46,170,162,243,48,177,165,246,46,177,245,44,77,177,153,233,32,177,157,236,30,177,160,245,32,177,241,34,82,177,158,246,46,174,162,245,44,174,246,46,165,172,243,48,84,172,236,36,160,179,164,234,34,176,167,236,36,172,89,233,37,181,165,236,49,181,236,169,51,181,236,172,49,179,236,84,48,179,236,160,36,179,236,164,37,179,236,167,36,177,233,34,86,177,233,46,162,177,233,165,44,177,233,169,46,184,233,48,81,184,233,157,36,184,236,160,41,184,236,165,39,186,234,37,82,186,234,49,158,186,234,162,51,186,241,165,54,184,241,77,53,184,241,153,41,184,241,157,44,184,241,160,53,186,241,49,82,186,241,158,54,186,238,53,162,186,238,165,54,188,236,51,84,176,236,160,44,176,243,164,42,176,240,167,44,177,236,89,41,165,245,165,44,167,245,44,169,169,245,44,172,165,164,243,44,84,176,243,44,160,177,179,243,44,164,243,44,167,176,241,41,174,86,241,41,162,162,164,241,41,165,165,241,41,169,162,248,41,164,81,172,248,41,157,170,248,44,160,169,248,44,165,167,250,42,165,82,250,42,158,170,169,250,42,162,167,250,49,165,170,248,49,77,169,165,248,49,153,167,248,49,157,169,248,49,160,172,250,49,170,82,174,250,49,158,172,170,250,46,162,169,250,46,165,252,44,167,84,240,44,160,172,170,240,51,164,169,240,48,167,167,241,44,89,169,177,229,53,165,176,231,53,169,177,233,53,172,169,229,172,228,51,84,172,240,51,160,174,241,176,243,51,164,172,240,51,167,49,169,238,86,177,49,162,226,179,228,49,165,181,229,49,169,177,226,56,181,228,81,181,236,56,157,179,234,56,160,177,233,56,165,176,231,58,174,229,82,174,58,158,234,172,233,58,162,174,231,176,234,58,165,56,77,177,233,229,56,153,181,179,231,56,157,177,233,56,160,181,236,234,58,182,82,238,58,158,177,176,236,58,162,174,234,174,58,165,233,172,60,231,84,48,160,167,236,234,48,164,172,233,172,48,167,231,172,49,89,233,37,165,241,240,39,169,241,41,172,233,37,36,84,236,236,48,160,238,49,172,164,240,51,167,236,48,165,233,46,86,241,162,34,243,36,165,245,37,169,241,34,245,36,81,245,44,157,243,42,172,241,41,160,165,240,39,170,238,37,82,238,158,42,236,41,162,238,39,165,240,42,77,172,241,41,37,153,245,243,39,157,241,41,160,245,44,170,42,246,82,241,46,158,240,44,162,165,238,42,238,165,41,167,236,39,84,165,167,165,160,167,231,44,165,167,42,165,164,236,41,236,167,164,39,236,89,165,41,165,49,48,169,177,49,41,172,84,176,44,44,160,46,236,164,48,167,44,174,229,41,86,49,162,51,165,53,49,169,172,53,81,53,157,51,236,160,49,48,165,165,234,46,82,46,158,44,162,46,165,167,48,77,169,236,49,53,153,51,157,49,160,53,174,234,54,82,158,49,48,162,229,46,46,165,167,231,44,84,229,231,229,39,160,231,229,231,229,164,44,167,44,167,228,44,89,169,229,165,169,241,172,181,181,240,84,160,182,44,164,181,179,167,177,238,37,86,162,165,177,169,177,236,81,179,157,177,44,160,165,176,82,174,229,42,158,162,165,231,77,177,233,44,153,157,160,177,238,42,82,158,175,174,37,162,165,175,39,172,231,84,37,39,37,160,39,37,39,37,164,172,231,167,36,172,233,37,89,165,49,169,184,245,172,184,245,84,48,160,186,246,164,184,245,167,182,243,181,241,46,86,162,165,181,241,169,181,241,44,81,157,182,243,160,181,241,165,179,240,177,238,37,82,158,175,162,174,175,39,165,172,77,241,41,153,157,172,160,241,170,46,82,170,158,239,238,162,177,165,239,176,236,39,84,160,164,176,236,39,167,236,89,177,41,165,177,169,172,248,53,248,53,84,250,160,54,164,176,248,53,246,51,167,245,49,86,162,165,174,245,49,169,245,49,81,157,246,51,160,172,245,49,165,243,48,82,241,46,158,239,170,238,162,239,165,77,236,49,153,157,169,236,160,49,234,82,234,47,158,162,46,241,165,167,47,167,240,44,84,160,164,240,44,167,44,89,169,241,165,241,169,181,172,56,56,84,58,160,164,179,240,56,167,54,177,53,86,162,165,189,238,53,169,53,81,157,54,236,53,160,187,165,51,186,49,82,158,47,162,234,46,47,165,77,189,44,153,184,233,157,44,160,42,186,42,82,158,162,49,165,231,231,184,48,84,160,164,48,167,184,89,233,49,165,49,169,245,172,84,172,160,164,243,48,167,170,169,241,86,162,165,253,46,169,181,81,157,44,160,251,179,165,177,250,82,158,162,42,165,77,253,153,177,248,41,157,160,177,250,82,158,162,165,39,39,176,248,84,160,164,167,248,89,177,41,165,165,53,169,172,84,164,236,160,176,51,164,167,234,174,233,49,86,162,165,162,61,169,160,245,81,157,160,172,59,243,165,82,170,241,58,158,162,182,165,77,181,61,153,169,241,56,157,160,241,167,58,82,158,162,174,165,167,240,56,84,160,179,164,167,181,241,56,89,165,169,229,172,228,44,84,160,164,240,167,42,238,41,86,162,226,165,169,224,53,81,157,160,236,165,51,234,49,82,158,162,246,165,245,77,153,233,49,157,160,49,231,82,158,238,162,165,231,48,84,160,164,243,167,245,49,89,165,169,37,172,36,84,160,164,48,167,46,86,162,34,165,169,32,81,157,160,44,165,82,42,158,162,54,165,77,53,153,157,41,160,39,82};

const uint8_t musicTicks1[] PROGMEM = {0,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,24,24,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,24,24,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,0,48,0,24,24,0,0,48,0,0,48,0,0,48,0,0,48,0,0,0,24,24,0,0,0,24,24,0,0,0,24,24,0,0,24,0,24,0,0,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,24,24,0,0,0,0,0,24,24,0,0,0,0,0,24,24,0,0,0,0,24,24,0,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,24,24,0,0,0,0,0,24,24,0,0,0,0,0,0,24,24,0,0,0,0,24,24,0,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,48,0,0,0,0,0,48,0,0,0,48,0,0,0,0,48,0,0,0,0,48,0,0,0,0,0,24,24,0,0,0,0,0,24,24,0,0,0,0,0,24,24,0,0,0,0,24,24,0,0,0,48,48,48,48,48,48,48,48,192,0
};
const uint8_t musicDuring1[] PROGMEM = {16,16,15,7,15,7,15,7,7,15,15,15,15,7,7,15,7,7,15,15,15,7,15,7,15,16,16,15,7,7,15,7,7,15,15,15,15,7,7,15,7,7,15,15,15,7,15,7,15,16,16,15,7,7,15,7,7,15,15,15,15,7,7,15,7,7,15,15,15,7,15,7,15,16,16,15,7,7,15,7,7,15,15,15,15,1,7,7,2,15,4,7,7,6,15,8,15,15,10,15,13,7,14,7,10,15,10,10,15,15,12,12,10,8,10,10,15,15,10,10,10,13,15,10,10,10,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,14,10,10,10,15,10,10,10,7,15,10,10,10,15,15,10,10,10,12,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,15,13,10,10,10,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,14,10,10,10,15,10,10,10,7,15,10,10,10,15,15,10,10,10,12,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,13,15,10,10,10,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,14,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,10,10,10,12,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,13,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,14,15,10,10,10,15,1,15,10,10,10,2,4,10,15,10,7,10,6,8,10,15,10,15,10,10,13,10,12,10,10,14,12,10,12,10,15,10,15,10,8,10,10,15,15,15,10,10,10,13,15,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,14,15,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,12,10,10,10,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,13,15,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,15,14,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,12,10,10,10,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,15,13,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,15,14,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,12,10,10,10,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,13,15,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,14,15,10,10,10,15,1,15,10,10,10,2,4,10,7,10,15,10,6,15,8,10,15,10,15,10,10,13,10,12,10,10,14,12,10,12,10,15,10,15,10,8,10,10,15,15,15,10,10,10,15,13,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,15,14,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,15,10,10,10,12,10,10,10,15,15,10,10,10,8,10,10,10,15,15,15,10,10,10,15,13,10,10,10,15,15,10,10,10,7,15,10,10,10,15,15,15,10,10,10,13,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,14,10,10,10,15,15,10,10,10,15,7,10,10,10,15,15,10,10,10,12,10,10,10,15,15,15,10,10,10,8,10,10,10,15,15,10,10,10,15,13,10,10,10,15,1,15,10,10,10,2,4,10,15,10,7,10,6,8,10,15,10,15,10,10,13,10,13,10,10,14,10,15,15,15,10,10,10,10,10,10,10,10,10,12};

const uint8_t musicTicks2[] PROGMEM = {0,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,122,118,120,120,120,0,120,120,120,120,0,120,120,120,120,0,120,120,120,120,0,120,120,120,120,0,120,120,120,120,0,120,120,120,120,0,120,120,120,120,2,118,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,0,120,120,120,120,0,2,118,120,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,0,120,120,0,120,120,0,0,2,118,120,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,0,120,120,0,0,120,120,0,0,2,28,30,30,30,0,30,30,30,30,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,2,28,30,30,30,0,0,30,30,30,30,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,2,28,30,30,30,0,0,0,30,30,30,30,0,0,0,0,120,0,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,2,118,0,0,120,0,0,0,0,120,0,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,120,0,120,0,120,0,120,0,0,0,120,0,120,0,0,0,120,0,120,0,120,0,120,0,0,0,120,0,120,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,0,120,0,120,0,0,120,0,120,0,0,2,118,0,120,0,0,0,0,120,0,120,0,0,0,120,0,60,60,0,0,0,120,0,60,60,0,0,0,60,60,0,60,60,0,60,60,0,60,60,0,120,0,60,60,0,0,0,120,0,60,60,0,0,0,60,60,0,60,60,0,60,60,0,60,60,0,0,0,120,0,60,60,0,120,0,60,60,0,0,60,60,0,60,60,0,0,60,60,0,60,60,0,0,0,120,0,60,60,0,0,120,0,60,60,0,0,2,58,60,0,60,60,0,0,60,60,0,60,60,0,0,0,120,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,2,58,0,60,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,0,120,0,0,60,0,60,0,0,120,0,0,60,0,60,0,0,2,58,0,60,0,0,60,0,60,0,0,60,0,60,0,0,60,0,60,0,0,120,0,60,60,0,0,120,0,60,60,0,0,60,60,0,60,60,0,0,60,60,0,60,60,0,0,120,0,60,60,0,0,120,0,60,60,0,0,60,60,0,60,60,0,0,60,60,0,60,60,0,0,120,0,60,60,0,0,120,0,60,60,0,0,60,60,0,60,60,0,0,60,60,0,60,60,0,0,120,0,60,60,0,0,120,0,60,60,0,2,58,60,0,60,60,0,0,60,60,0,60,60,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,2,118,0,120,0,0,120,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,2,118,0,0,120,0,0,0,120,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,2,118,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,2,118,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,2,118,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,0,60,0,60,0,0,0,120,0,0,0,120,0,0,2,118,0,0,0,60,60,0,0,0,120,0,0,0,120,0,0,0,120,0,0,60,0,60,0,0,120,0,0,120,0,0,120,0,0,60,0,60,0,0,0,120,0,0,120,0,0,0,120,0,0,60,0,60,0,0,120,0,0,120,0,0,120,0,0,60,0,60,0,0,0,120,0,0,120,0,0,0,120,0,0,60,0,60,0,0,120,0,0,120,0,0,0,120,0,0,60,0,60,0,0,120,0,0,120,0,0,0,120,0,0,60,0,60,0,0,0,120,0,0,120,0,0,2,28,30,30,30,0,0,0,30,30,0,30,30,0,0,120,0,0,0,120,0,0,0,120,0,60,60,0,0,120,0,120,0,0,120,0,60,60,0,0,120,0,120,0,0,0,120,0,60,60,0,120,0,120,0,0,120,0,60,60,0,0,120,0,120,0,0,0,120,0,60,60,0,120,0,0,120,0,0,0,120,0,60,60,0,120,0,120,0,0,0,120,0,60,60,0,0,120,0,120,0,0,2,28,30,30,30,0,0,30,30,30,30,0,120,0,0,0,120,0,0,0,120,120,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,0,120,120,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,0,120,120,120,0,120,0,0,0,120,120,120,120,0,0,0,120,0,120,0,0,120,0,120,0,0,2,28,30,30,30,0,30,30,30,30,120,0,0,0,120,0,0,0,120,120,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,120,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,120,0,120,0,0,120,0,0,0,120,120,120,0,120,0,0,0,0,120,0,120,0,0,120,0,120,0,0,2,118,120,120,0,0,0,120,0,0,0,120,120,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,120,0,120,0,0,120,0,0,120,0,0,120,0,0,0,120,0,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,120,0,120,0,120,0,0,0,120,0,120,0,0,120,0,0,120,0,0,2,118,120,120,0,0,120,0,0,0,120,120,0,0,120,0,120,0,120,0,120,0,0,0,120,0,120,0,0,120,120,0,0,120,0,120,0,120,0,120,0,0,0,120,0,120,0,0,120,0,120,0,0,120,0,120,0,0,120,120,0,0,120,0,120,0,0,0,120,120,0,120,0,120,0,0,2,118,120,120,0,120,0,0,0,120,120,0,0,120,120,0,120,120,0,0,120,0,120,0,0,120,120,0,0,120,120,0,120,120,0,0,120,0,120,0,0,120,120,0,120,120,0,120,120,0,0,0,120,120,0,0,120,120,120,0,120,0,0,2,118,120,120,120,0,0,0,120,120,0,0,120,120,0,0,120,120,0,0,120,0,120,0,0,0,120,120,0,0,120,120,0,0,120,120,0,0,120,0,120,0,0,0,120,120,0,120,120,0,0,120,120,0,0,0,120,120,0,0,0,120,120,0,120,120,0,0,2,118,120,0,120,120,0,0,0,120,120,0,120,120,0,0,120,120,0,120,0,120,0,0,120,120,0,120,120,0,0,120,120,0,120,0,120,0,0,120,120,0,120,120,0,120,120,0,0,120,120,0,0,120,120,0,120,120,0,2,118,120,0,120,120,0,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0,120,120,0
};
const uint8_t musicDuring2[] PROGMEM = {11,7,12,10,14,10,12,10,14,10,12,10,14,10,12,10,14,10,12,10,14,10,12,10,14,10,12,10,14,10,12,10,12,14,10,12,10,14,16,10,12,10,16,14,10,12,10,16,14,10,12,10,16,14,10,12,10,14,16,10,12,10,16,14,10,12,10,16,14,10,12,10,16,12,14,10,12,10,14,16,16,10,12,10,16,16,14,10,12,10,16,16,14,10,12,10,16,16,14,10,12,10,16,14,16,10,12,10,16,16,14,10,12,10,16,16,14,10,12,10,12,14,16,16,10,12,16,10,14,16,16,16,10,12,16,10,16,16,16,14,10,12,16,10,16,16,16,14,10,12,16,10,16,16,16,14,10,12,16,10,14,16,16,16,10,12,16,10,16,16,16,14,10,12,16,10,16,16,16,14,10,12,16,10,16,16,14,16,10,12,16,16,10,14,16,16,16,10,12,16,16,10,18,16,16,14,10,12,18,16,10,18,16,16,14,10,12,18,16,10,16,16,14,18,10,16,16,12,10,14,16,16,16,10,12,16,16,10,16,16,16,14,10,12,16,16,10,16,16,16,14,16,16,16,10,16,16,16,16,12,16,10,16,14,16,16,16,16,10,12,16,16,16,10,16,14,16,16,16,16,10,16,16,16,12,10,16,16,18,16,14,16,10,16,18,16,12,16,10,16,18,16,14,10,16,18,18,16,12,10,18,14,18,18,16,10,16,12,16,16,16,10,16,14,16,16,16,16,10,12,16,16,16,16,10,16,16,16,14,16,10,12,16,16,16,10,16,16,16,16,14,16,16,16,10,16,16,16,16,16,12,16,16,10,16,16,16,16,16,14,10,16,16,12,16,16,16,16,16,10,14,16,16,16,10,16,16,12,16,16,16,16,10,16,16,16,18,14,10,16,16,16,16,18,12,16,16,10,16,16,18,14,10,16,16,12,16,18,18,10,16,18,16,18,18,14,10,16,16,12,20,16,16,20,16,10,20,16,16,14,10,20,16,20,16,16,12,10,20,16,16,16,16,14,10,16,16,12,16,16,16,10,16,16,16,16,16,14,16,16,16,10,16,16,16,16,16,16,12,16,16,16,16,16,16,16,10,14,16,16,16,10,16,16,20,16,16,12,10,16,16,14,20,16,16,10,16,16,16,16,12,10,16,16,16,16,14,10,16,16,16,12,16,16,10,16,16,20,16,16,14,10,16,16,12,16,18,16,18,10,14,20,16,18,16,16,10,12,20,16,10,20,16,20,20,16,14,20,16,10,20,16,12,10,20,16,20,16,16,14,16,16,10,12,16,16,10,16,16,20,16,16,14,10,16,16,12,16,16,16,16,16,16,10,22,16,16,14,16,10,12,16,20,16,16,10,20,16,14,16,10,16,16,12,10,16,16,14,10,16,16,16,12,16,10,16,16,20,16,14,10,16,12,16,10,16,16,14,20,16,16,10,20,12,10,20,14,20,20,10,20,16,12,20,10,20,16,20,16,14,10,16,12,16,16,10,16,16,20,16,14,10,16,16,16,12,16,16,16,10,20,22,16,14,10,20,20,12,20,16,20,10,20,20,14,20,16,20,16,16,10,16,16,12,16,16,10,16,20,14,16,10,16,16,16,12,20,16,10,16,16,16,20,14,16,16,10,16,16,12,16,10,16,16,16,14,20,20,16,10,16,12,20,16,10,16,16,20,14,16,16,10,16,16,12,16,16,10,16,16,16,20,20,14,16,10,16,12,20,16,16,10,16,16,16,20,14,16,16,10,16,12,16,16,16,10,16,16,20,14,20,22,10,16,20,16,20,12,20,20,16,10,16,20,16,20,14,16,20,16,16,16,10,16,16,16,16,12,16,16,16,16,10,16,16,16,16,20,20,14,16,16,10,16,16,16,12,20,20,16,16,10,16,16,16,16,16,14,16,16,16,16,10,16,16,12,16,16,16,16,10,16,16,16,16,16,20,20,14,10,16,16,16,16,12,20,20,16,10,16,16,16,14,16,16,16,16,10,16,16,16,16,16,12,16,16,16,16,10,16,16,16,16,20,20,16,14,10,16,16,16,16,12,20,20,16,10,16,16,16,16,16,16,16,14,16,16,16,16,10,16,16,12,16,16,16,16,16,16,10,16,16,16,20,14,20,20,10,16,20,16,20,12,20,20,10,16,20,16,20,18,14,16,20,16,16,10,16,16,16,16,12,16,16,16,16,16,16,10,16,16,18,20,20,14,10,16,16,16,16,12,20,20,16,16,10,16,16,18,16,16,14,16,16,16,16,10,16,16,12,16,16,16,16,16,16,10,16,16,18,20,20,14,16,16,10,16,16,12,20,20,16,10,16,16,16,18,14,16,16,16,16,16,16,10,16,16,12,16,16,16,16,16,16,10,16,16,18,20,20,14,10,16,16,16,16,12,20,20,10,16,16,16,16,18,16,16,14,16,16,16,16,10,16,16,12,16,16,16,16,16,10,16,16,16,14,20,20,10,16,16,18,12,20,10,16,16,18,14,16,16,10,16,16,18,12,16,16,16,10,16,18,20,14,16,10,16,18,12,20,16,10,16,18,16,14,16,16,10,16,18,12,16,16,16,10,16,18,20,14,10,16,16,18,12,20,10,16,16,18,16,14,16,16,10,16,18,12,16,16,16,10,16,18,20,14,10,16,16,18,12,20,16,10,16,18,16,14,16,16,10,16,18,12,16,16,10,16,16,16,20,14,10,16,18,12,16,10,16,18,14,16,10,16,16,18,12,10,16,16,18,14,16,10,16,18,12,10,16,16,18,14,10,16,16,18,12,16,10,16,18,14,10,16,16,18,12,16,10,18,14,16,10,16,16,18,12,16,10,18,16,14,10,16,18,12,16,10,16,18,16,14,16,10,18,12,16,10,16,14,16,16,10,16,16,18,12,16,16,16,16,10,16,16,14,10,16,16,16,16,18,12,16,16,10,16,16,14,10,16,16,18,12,16,16,10,16,16,16,16,14,10,16,16,18,12,16,16,10,16,16,14,16,16,10,16,16,18,12,16,16,10,16,16,14,16,16,10,16,16,18,12,16,16,10,16,16,16,16,14,16,16,10,18,12,16,16,10,16,16,16,16,14,16,16,10,18,12,16,16,10,16,16,14,16,16,16,16,16,16,10,16,12,16,16,16,10,16,16,16,16,16,14,16,10,16,16,16,16,16,12,16,10,16,16,16,16,16,14,16,10,16,16,16,16,16,12,16,10,16,16,16,16,16,14,16,10,16,16,16,12,16,16,16,10,16,16,16,16,16,14,16,10,16,16,16,12,16,16,16,10,16,16,16,16,16,14,16,10,16,16,16,12,16,16,16,10,16,16,16,16,16,14,16,10,16,16,16,12,16,16,16,16,16,10,16,16,16,14,16,16,16,10,16,12,16,16,16,10,16,16,16,14,16,16,16,10,16,16,16,16,12,16,16,16,10,16,16,16,14,16,16,16,10,16,16,16,12,16,16,16,10,16,16,16,16,14,16,16,16,10,16,16,12,16,16,16,10,16,19,16,16,14,19,16,10,16,19,16,12,16,19,16,10,16,22,16,16,14,22,16,16,10,22,16,12,16,22,16,10,16,19,16,14,16,19,16,10,16,19,16,12,16,19,16,10,16,22,16,16,14,22,16,10,16,22,16,16,12,22,16,10,16,23,16,16,14,16,16,10,16,16,16,12,16,16,16,10,16,16,16,14,16,16,16,10,16,16,16,16,12,16,16,16,10,16,16,16,16,14,16,16,16,10,16,16,16,16,12,16,16,10,16,16,16,16,14,16,16,10,16,16,16,16,12,16,16,16,10,16,19,16,16,14,16,19,16,10,16,19,16,12,16,19,16,10,16,22,16,16,14,22,16,10,16,16,22,16,12,16,22,16,10,16,19,16,14,16,16,19,16,10,16,19,16,12,16,19,16,10,16,22,16,16,14,16,22,16,10,16,16,22,16,12,16,22,16,10,23,16,16,14,16,16,10,16,16,16,16,12,16,16,16,10,16,16,16,14,16,16,16,16,10,16,16,16,12,16,16,16,10,16,16,16,16,16,14,16,16,16,10,16,16,16,16,16,12,16,16,16,10,16,16,16,14,16,16,10,16,16,16,16,12,16,16,16,10,16,16,19,16,16,14,16,16,19,10,16,16,19,12,16,16,19,10,16,16,22,16,16,14,16,22,10,16,16,16,22,12,16,16,16,16,22,10,19,14,16,16,16,19,10,16,16,16,19,12,17,16,19,10,19,16,16,22,21,14,16,22,10,16,16,16,22,12,16,16,16,22,10,16,16,23,16,14,16,10,16,16,16,16,12,16,16,16,16,10,16,18,16,14,16,16,10,16,16,16,12,16,16,10,16,16,16,14,16,16,16,10,16,16,18,12,16,16,10,16,16,18,16,16,14,16,10,16,16,16,12,16,16,10,16,16,16,16,14,16,16,10,16,16,18,16,16,12,10,16,16,18,16,16,14,16,10,16,16,16,12,16,16,10,16,16,14,18,16,16,16,10,16,16,16,12,17,16,10,19,16,18,16,21,14,16,16,10,16,16,12,18,16,16,16,10,16,18,16,16,14,16,16,16,10,16,16,16,16,16,16,16,12,16,16,16,10,16,16,18,14,16,16,10,16,16,12,16,16,16,10,14,16,16,16,10,16,18,12,16,10,16,16,18,16,14,16,10,16,12,16,16,10,16,16,14,16,10,16,18,12,16,16,10,16,18,16,14,16,10,16,12,16,10,16,16,14,16,18,16,16,10,16,12,17,10,19,16,18,21,14,10,16,16,12,18,16,16,10,16,18,16,14,16,16,16,16,10,16,16,16,16,12,16,16,16,10,16,18,14,16,16,10,12,16,10,20,20,16,14,10,20,18,12,20,20,10,20,16,18,14,10,12,20,10,20,16,14,20,10,20,18,12,10,20,14,20,16,18,10,12,10,16,14,20,16,18,10,12,10,20,16,18,14,10,20,20,18,12,10,20,18,20,16,14,16,16,16,10,16,16,16,16,12,20,16,10,16,20,16,16,14,10,16,12,20,20,10,20,20,14,16,10,20,20,12,20,20,10,20,20,20,20,16,14,10,12,20,20,10,20,20,16,14,10,20,20,12,20,20,10,20,20,20,20,16,14,10,20,12,20,20,16,10,20,14,20,16,10,12,20,10,20,20,16,14,20,10,20,20,12,20,10,20,20,20,16,14,10,12,20,20,16,10,20,14,16,16,10,16,12,10,20,20,20,20,14,20,10,20,12,16,20,20,20,20,10,20,20,14,10,12,16,20,20,10,20,20,14,10,20,20,12,16,20,20,10,20,20,14,20,20,10,20,16,20,12,20,10,14,20,20,10,12,16,20,10,20,20,14,20,20,10,12,20,20,10,16,20,16,20,20,14,10,12,20,20,10,20,14,16,16,10,16,12,16,10,20,20,14,20,10,12,16,16,20,10,20,16,20,14,10,12,24,16,20,10,20,14,10,20,16,20,12,23,10,20,23,20,14,10,20,12,16,20,20,10,14,24,20,10,23,16,12,20,10,20,23,20,14,10,12,20,10,16,16,23,20,14,10,12,20,10,16,14,16,16,10,16,12,16,10,14,16,10,12,16,16,10,16,16,16,14,10,12,24,16,10,20,14,10,16,12,23,20,10,20,23,14,10,12,16,10,14,24,10,18,23,16,12,10,18,23,14,10,12,10,16,16,18,23,14,10,12,10,16,14,18,16,10,18,16,12,10,14,18,16,10,18,16,12,10,16,18,16,16,14,10,12,18,24,10,18,20,14,10,12,18,23,20,10,14,18,20,23,10,12,18,10,14,18,24,10,18,18,23,12,10,18,18,23,14,10,12,18,10,18,18,23,14,10,18,12,10,18,18,16,14,10,12,18,10,18,16,14,10,12,18,10,16,18,16,14,10,18,12,10,18,20,14,10,12,18,10,20,18,20,14,10,12,18,10,18,14,10,18,18,12,10,18,18,14,10,18,12,10,18,18,14,10,12,18,10,18,18,14,10,12,18,10,18,14,10,12,18,10,18,14,10,18,12,10,18,14,10,12,18,10,14,18,10,12,18,10,14,18,10,12,18,10,18,14
};
const uint8_t sampleScale[9][13]=

{{60,61,62,63,64,65,66,67,68,69,70,71,72},
{60,62,64,65,67,69,71,72,0,0,0,0,0},
{60,62,63,65,67,68,70,72,0,0,0,0,0},
{60,64,67,72,0,0,0,0,0,0,0,0,0},
{60,63,67,72,0,0,0,0,0,0,0,0,0},
{60,62,64,67,69,72,0,0,0,0,0,0,0},
{60,63,65,67,70,72,0,0,0,0,0,0,0},
{60,63,65,66,67,70,72,0,0,0,0,0,0},
{60,62,63,65,67,68,71,72,0,0,0,0,0}};


const uint8_t scale[8][128]=

//Major
{{0,2,2,4,4,5,5,7,7,9,9,11,12,14,14,16,16,17,17,19,19,21,21,23,24,26,26,28,28,29,29,31,31,33,33,35,36,38,38,40,40,41,41,43,43,45,45,47,48,50,50,52,52,53,53,55,55,57,57,59,60,62,62,64,64,65,65,67,67,69,69,71,72,74,74,76,76,77,77,79,79,81,81,83,84,86,86,88,88,89,89,91,91,93,93,95,96,98,98,100,100,101,101,103,103,105,105,107,108,110,110,112,112,113,113,115,115,117,117,119,120,122,122,124,124,125,125,127},

//Natural Minor
{0,2,2,3,3,5,5,7,8,8,10,10,12,14,14,15,15,17,17,19,20,20,22,22,24,26,26,27,27,29,29,31,32,32,34,34,36,38,38,39,39,41,41,43,44,44,46,46,48,50,50,51,51,53,53,55,56,56,58,58,60,62,62,63,63,65,65,67,68,68,70,70,72,74,74,75,75,77,77,79,80,80,82,82,84,86,86,87,87,89,89,91,92,92,94,94,96,98,98,99,99,101,101,103,104,104,106,106,108,110,110,111,111,113,113,115,116,116,118,118,120,122,122,123,123,125,125,127},

//Major triad
{0,0,4,4,4,4,7,7,7,7,12,12,12,12,16,16,16,16,19,19,19,19,24,24,24,24,28,28,28,28,31,31,31,31,36,36,36,36,40,40,40,40,43,43,43,43,48,48,48,48,52,52,52,52,55,55,55,55,60,60,60,60,64,64,64,64,67,67,67,67,72,72,72,72,76,76,76,76,79,79,79,79,84,84,84,84,88,88,88,88,91,91,91,91,96,96,96,96,100,100,100,100,103,103,103,103,108,108,108,108,112,112,112,112,115,115,115,115,120,120,120,120,124,124,124,124,127,127},

//Minor triad
{0,0,3,3,3,3,7,7,7,7,12,12,12,12,15,15,15,15,19,19,19,19,24,24,24,24,27,27,27,27,31,31,31,31,36,36,36,36,39,39,39,39,43,43,43,43,48,48,48,48,51,51,51,51,55,55,55,55,60,60,60,60,63,63,63,63,67,67,67,67,72,72,72,72,75,75,75,75,79,79,79,79,84,84,84,84,87,87,87,87,91,91,91,91,96,96,96,96,99,99,99,99,103,103,103,103,108,108,108,108,111,111,111,111,115,115,115,115,120,120,120,120,123,123,123,123,127,127},

//Major Pent
{0,0,2,2,4,4,7,7,9,9,9,12,12,12,14,14,16,16,19,19,21,21,21,24,24,24,26,26,28,28,31,31,33,33,33,36,36,36,38,38,40,40,43,43,45,45,45,48,48,48,50,50,52,52,55,55,57,57,57,60,60,60,62,62,64,64,67,67,69,69,69,72,72,72,74,74,76,76,79,79,81,81,81,84,84,84,86,86,88,88,91,91,93,93,93,96,96,96,98,98,100,100,103,103,105,105,105,108,108,108,110,110,112,112,115,115,117,117,117,120,120,120,122,122,124,124,127,127},

//Minor Pent
{0,0,3,3,5,5,7,7,7,10,10,10,12,12,15,15,17,17,19,19,19,22,22,22,24,24,27,27,29,29,31,31,31,34,34,34,36,36,39,39,41,41,43,43,43,46,46,46,48,48,51,51,53,53,55,55,55,58,58,58,60,60,63,63,65,65,67,67,67,70,70,70,72,72,75,75,77,77,79,79,79,82,82,82,84,84,87,87,89,89,91,91,91,94,94,94,96,96,99,99,101,101,103,103,103,106,106,106,108,108,111,111,113,113,115,115,115,118,118,118,120,120,123,123,125,125,127,127},

//Blues Hex
{0,0,3,3,5,5,6,6,7,7,10,10,12,12,15,15,17,17,18,18,19,19,22,22,24,24,27,27,29,29,30,30,31,31,34,34,36,36,39,39,41,41,42,42,43,43,46,46,48,48,51,51,53,53,54,54,55,55,58,58,60,60,63,63,65,65,66,66,67,67,70,70,72,72,75,75,77,77,78,78,79,79,82,82,84,84,87,87,89,89,90,90,91,91,94,94,96,96,99,99,101,101,102,102,103,103,106,106,108,108,111,111,113,113,114,114,115,115,118,118,120,120,123,123,125,125,126,126},

//Harmonic Minor
{0,0,2,3,3,5,7,7,8,8,11,11,12,12,14,15,15,17,19,19,20,20,23,23,24,24,26,27,27,29,31,31,32,32,35,35,36,36,38,39,39,41,43,43,44,44,47,47,48,48,50,51,51,53,55,55,56,56,59,59,60,60,62,63,63,65,67,67,68,68,71,71,72,72,74,75,75,77,79,79,80,80,83,83,84,84,86,87,87,89,91,91,92,92,95,95,96,96,98,99,99,101,103,103,104,104,107,107,108,108,110,111,111,113,115,115,116,116,119,119,120,120,122,123,123,125,127,127}};

#endif
